home *** CD-ROM | disk | FTP | other *** search
- on renseigne txt1, sty1, txt2, sty2, nCurs
- set the textStyle of field "ZI4" to sty1
- set the text of field "ZI4" to txt1
- set the textStyle of field "ZI5" to "plain"
- set the textStyle of field "ZI5" to sty2
- set the text of field "ZI5" to txt2
- curseur(nCurs)
- end
-
- on exitFrame
- global gPhLabel
- go(label(gPhLabel))
- end
-
- on idle
- global gBarChron, gSurvolAct, gSurvolPrec, gListSuj, gMaxBoutons, gEtaSpir, gSujet0, g1erSprChr, g1erSprNav, g1erSprLoc, gListCod, gEtudAct, gEtatEtud, gMessDef1, gMessDef2, gMessSty1, gMessSty2, gScopePh, gListCodPhy, gListNomPhy, gListRecPhy, gListSujPhy, gSujAct, gListTimPhy, gDur
- if not (the mouseDown) then
- set MsCast to the mouseCast
- set MouseLoc to point(the mouseH, the mouseV)
- if MsCast > 0 then
- if not gEtaSpir then
- set gSurvolAct to 0
- repeat with monSpr = g1erSprChr to g1erSprLoc
- if rollOver(monSpr) and (the castNum of sprite monSpr <> 0) and the visible of sprite monSpr then
- set gSurvolAct to monSpr
- exit repeat
- end if
- end repeat
- if rollOver(g1erSprLoc + 1) and ((the mouseCast = the number of cast "MSKPH 0") or (the mouseCast = the number of cast "MSKPH 1")) then
- set gSurvolAct to g1erSprLoc + 1
- end if
- if gSurvolAct <> gSurvolPrec then
- if gSurvolAct <> 0 then
- if (gSurvolAct >= g1erSprChr) and (gSurvolAct <= (g1erSprChr + 9)) then
- gBarChron(survol, gSurvolAct, the number of cast "ZI4")
- end if
- if gSurvolAct = g1erSprNav then
- renseigne(getAt(gTraduit, 12), "bold", " ", gMessSty2, 7)
- end if
- if gSurvolAct = (g1erSprNav + 1) then
- renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 3), "bold", " ", gMessSty2, 7)
- end if
- if gSurvolAct = (g1erSprNav + 2) then
- renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 5), "bold", " ", gMessSty2, 7)
- end if
- if gSurvolAct = (g1erSprNav + 3) then
- renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 4), "bold", " ", gMessSty2, 7)
- end if
- if gSurvolAct = (g1erSprNav + 4) then
- renseigne(getAt(gTraduit, 26) && getAt(gTraduit, 7), "bold", " ", gMessSty2, 7)
- end if
- if gSurvolAct = (g1erSprNav + 5) then
- renseigne(getAt(gTraduit, 27), "bold", " ", gMessSty2, 1)
- end if
- if gSurvolAct = g1erSprLoc then
- set monTxt1 to " "
- set monTxt2 to " "
- set nomBt to word 1 of the name of cast MsCast
- if nomBt = "BTGOEI" then
- set monTxt1 to getAt(gTraduit, 66)
- set monTxt2 to getAt(gListNomPhy, gSujAct)
- end if
- if nomBt = "BTGPOS" then
- set monTxt1 to getAt(gTraduit, 50)
- set monTxt2 to " "
- end if
- renseigne(monTxt1, "bold", monTxt2, "bold, italic", 1)
- end if
- if gSurvolAct = (g1erSprLoc + 1) then
- set monTxt1 to " "
- set monTxt2 to " "
- repeat with i = 1 to 35
- if inside(MouseLoc, getAt(gListRecPhy, i)) = 1 then
- set monTxt1 to getAt(gTraduit, 101)
- set monTxt2 to getAt(gListNomPhy, i)
- gBarChron(fleche, 1, getAt(gListTimPhy, i), 1)
- exit repeat
- end if
- end repeat
- renseigne(monTxt1, "bold", monTxt2, "bold,italic", 7)
- end if
- if gSurvolAct = (g1erSprLoc + 2) then
- end if
- if gSurvolAct = (g1erSprLoc + 3) then
- renseigne(getAt(gTraduit, 40), "bold", getAt(gListNomPhy, gSujAct), "bold,italic", 7)
- end if
- else
- gBarChron(fleche, 0, 1, 1)
- renseigne(gMessDef1, "bold", gMessDef2, gMessSty2, -1)
- end if
- set gSurvolPrec to gSurvolAct
- end if
- end if
- else
- if (MsCast <> 0) and (MsCast <> -1) then
- if the number of words in the name of cast MsCast = 2 then
- if (word 2 of the name of cast MsCast = "1") or (word 2 of the name of cast MsCast = "0") then
- curseur(1)
- else
- curseur(-1)
- end if
- else
- curseur(-1)
- end if
- else
- curseur(-1)
- end if
- end if
- end if
- end
-